package com.itheima.a04staticdemo04;

public class Student {
    String name;
    int age;
    static String teacherName;

    // 这里有一个隐藏参数 Student this
    // 这个 this 是虚拟机自己赋值，不能手动赋值，否则报错
    public void show(Student this) {
        System.out.println("this" + this);
        System.out.println(name + "," + age + "," + teacherName);
    }

    public static void method() {
        System.out.println("静态方法");
    }
}
 